import { createAxiosInstance, createCountryApi } from './api/index';

export const createApiDictionary = (baseURL: string) => {
  const axiosInstance = createAxiosInstance({ baseURL });

  return {
    countryApi: createCountryApi(axiosInstance),
  };
};

export type ApiDictionaryType = ReturnType<typeof createApiDictionary>;
